package com.example.livingadminmaster.pojo;


import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.Setter;


import java.time.LocalDateTime;
@TableName("faculty_info")
/**
 * Faculty
 */
public class Faculty {
    /**
     * 教职工ID（主键）
     */
    @TableId(value = "faculty_id",type = IdType.ASSIGN_ID)
    private long facultyId;
    /**
     * 教职工姓名
     */
    private String username;
    /**
     * 教职工登录密码
     */
    private String password;
    /**
     * 年龄
     */
    private int age;
    /**
     * 教职工性别（0男1女）
     */
    private Boolean gender;
    /**
     * 教职工电话
     */
    private String phone;
    /**
     * 职称
     */
    private String position;
    /**
     * 所属系别
     */
    private String department;
    /**
     * 宿舍号
     */
    private String roomNumber;
    /**
     * 宿舍楼栋
     */
    private String building;
    /**
     * 上一次登录时间
     */
    private LocalDateTime lastLogin;
    /**
     * 状态（0启用/1禁用）
     */
    private Boolean status=false;
    @TableField(fill = FieldFill.INSERT) //插入时填充字段
    private LocalDateTime createTime;
    @TableField(fill = FieldFill.INSERT_UPDATE) //插入和更新时填充字段
    private LocalDateTime updateTime;

    public long getFacultyId() {
        return facultyId;
    }

    public String getUsername() {
        return username;
    }

    public String getPassword() {
        return password;
    }
    public int getAge() {
        return age;
    }

    public Boolean getGender() {
        return gender;
    }
    public String getPhone() {
        return phone;
    }
    public String getPosition() {
        return position;
    }
    public String getDepartment() {
        return department;
    }
    public String getRoomNumber() {
        return roomNumber;
    }
    public String getBuilding() {
        return building;
    }
    public LocalDateTime getLastLogin() {
        return lastLogin;
    }
    public boolean getStatus() {
        return status;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }
    public  LocalDateTime getUpdateTime() {
        return updateTime;
    }

    public void setFacultyId(long facultyId) {
        this.facultyId = facultyId;
    }
    public void setUsername(String username) {
        this.username = username;
    }
    public void setPassword(String password) {
        this.password = password;
    }
    public void setAge(int age) {
        this.age = age;
    }
    public void setGender(Boolean gender) {
        this.gender = gender;
    }
    public void setPhone(String phone) {
        this.phone = phone;
    }
    public void setPosition(String position) {
        this.position = position;
    }
    public void setDepartment(String department) {
        this.department = department;
    }
    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }
    public void setBuilding(String building) {
        this.building = building;
    }
    public void setLastLogin(LocalDateTime lastLogin) {
        this.lastLogin = lastLogin;
    }
    public void setStatus(Boolean status) {
        this.status = status;
    }
    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }
    public void setUpdateTime(LocalDateTime updateTime) {
        this.updateTime = updateTime;
    }
}
